package org.cuatrovientos.erp.model;

import java.sql.Timestamp;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import org.springframework.format.annotation.DateTimeFormat;
/**
 * 
 * @author CaselHunter
 *
 */
public class Employee {
@Min(value=1,message="{employee.id.error}")	
private int id;
@NotNull(message="{employee.name.error}")
 private String name;
@Pattern(regexp="^[0-9]{9}$",message="{employee.phone.error}")
private String phone;
@NotNull(message="{employee.brithday.error}")
private Timestamp brithday;


public Employee(){
	
}

public Employee(int id, String name, String phone, Timestamp brithday) {
	super();
	this.id = id;
	this.name = name;
	this.phone = phone;
	this.brithday = brithday;
}
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getPhone() {
	return phone;
}
public void setPhone(String phone) {
	this.phone = phone;
}
public Timestamp getBrithday() {
	return brithday;
}
public void setBrithday(Timestamp brithday) {
	this.brithday = brithday;
}


}